/*
package com.wang.rabbitmq.springboot;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

*/
/**
 * @author: wang
 * @date: 2021/8/3 21:20
 * @description:
 *//*

//@Component
public class FanoutReceive {


    @RabbitListener( bindings = {
            @QueueBinding(
                    exchange = @Exchange(name = "fanoutExchange",type = "fanout"),
                    // fanout 不设置 queue 表示使用随机名, 不持久化，
                    value = @Queue(durable = "false",exclusive = "false",autoDelete = "true")
            )
    })
    public void fanoutReceive(String message){
        System.out.println(message);
    }

}
*/
